package com.sky.properties;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author 褚金龙
 * @Date 2024/9/17 9:27
 */
@Component
@ConfigurationProperties(prefix = "sky.wechat")
@Data
@ApiModel(description = "小程序的配置项")
public class WeChatProperties {
    @ApiModelProperty("小程序的appid")
    private String appid;
    @ApiModelProperty("小程序的密钥")
    private String secret;
    @ApiModelProperty("商户号")
    private String mchid;
    @ApiModelProperty("商户API证书的证书序列号")
    private String mchSerialNo;
    @ApiModelProperty("商务私钥文件")
    private String privateKeyFilePath;
    @ApiModelProperty("证书解密的密钥")
    private String apiV3Key;
    @ApiModelProperty("平台证书")
    private String weChatPayCertFilePath;
    @ApiModelProperty("支付成功的回调地址")
    private String notifyUrl;
    @ApiModelProperty("退款成功的回调地址")
    private String refundNotifyUrl;


}
